package com.example.backend.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

// 买家收货状态表实体类
@Data
@TableName("buyer_receipt")
public class BuyerReceipt {
    // 收货记录ID
    @TableId(value = "receipt_id", type = IdType.AUTO) // 改为AUTO，因为是自增主键
    private Integer receiptId; // 改为Integer，因为是自增ID

    // 交易单号
    @TableField("transaction_id")
    private String transactionId;

    // 买家账号
    @TableField("buyer_id")
    private String buyerId;

    // 0-确认收货, 1-退货
    @TableField("receipt_status")
    private Integer receiptStatus;

    // 操作时间戳
    @TableField("receipt_time")
    private LocalDateTime receiptTime;

    // 退货原因
    @TableField("return_reason")
    private String returnReason;
}